Let us look at a simple example, where we have a box which is shared. When any client clicks on it the box rotates in all the clients.

The sequence of events is as follows :

Note that if the client computer got the click and executed the master's rpc_touched command, the master sends back a rotateBox message to the original client as well. So we have a "ping-pong" effect which finally results in everyone changing the color.

Be careful of circular loops û in this scheme it is all too easy to get in a circular loop where a client calls a master procedure which calls the same client procedure, over and over again.

This example consists of: